#include "test.h"
void press_bar()
{
  char bur[NUM];
  memset(bur,'\0',sizeof(bur));
  const char* get="|/-\\";
  int i=0;
  while(i<=100)
  {
    printf("[%-100s][%d%%][%c]\r",bur,i,get[i%4]);
    fflush(stdout);
    bur[i++]='#';
    usleep(50000);
  }
  printf("\n");
}
